package com.kgcx.system.service;

import com.kgcx.system.domain.MqFail;
import com.kgcx.system.mapper.MqFailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 吴刚林
 * @date 2017/11/30
 */
@Service
public class MqFailService {
    @Autowired
    private MqFailMapper mqFailMapper;

    @Transactional(rollbackFor = Exception.class)
    public void addMqFail(MqFail mqFail) {
        mqFailMapper.insertSelective(mqFail);
    }
}
